package cn.electronic.sale.mapper;

import cn.electronic.sale.pojo.Customer;
import cn.electronic.sale.pojo.CustomerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;


public interface CustomerMapper {
    int countByExample(CustomerExample example);

    int deleteByExample(CustomerExample example);

    int deleteByPrimaryKey(Integer customerId);

    int insert  (Customer record);

    int insertSelective(Customer record);
 
    List<Customer> selectByExample(CustomerExample example);

    Customer selectByPrimaryKey(Integer customerId);
    
    Customer findCustomerLogin(Customer customer) throws Exception;

    int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
}